package controller;
import biz.companyBiz;
import com.alibaba.fastjson.JSONArray;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
@Controller
@RequestMapping("/user")
public class companyController {
    @Autowired
    private companyBiz cb;
    @RequestMapping(value = "/findbyusersid" )
    @ResponseBody
    public String findByUsersId(int usersId){

        return JSONArray.toJSONString(cb.findByUsersId(usersId));
    }
}